

#import "UILabel+Extension.h"

@implementation UILabel (Extension)
/**
 * 自定义构造方法
 *sdaer/
 * @param title     title
 * @param fontSize fontSize 当传入的LGFontNormal时 设置默认14号字
 * @param color    当传入的为 nil 的时候 默认颜色为深灰色
 *
 * @return  UILabel
 */
- (instancetype)initWithTitle:(NSString *)title FontSize:(CGFloat)fontSize TextColor:(UIColor *)textColor {
    
    if (self = [super init]) {
        self.text = title;
        self.textColor = textColor;
        self.font = [UIFont systemFontOfSize:fontSize];
        self.numberOfLines = 0;
        self.textAlignment = NSTextAlignmentLeft;
    }
    
    return self;
}

@end
